package me.shurufa.activities;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

import me.shurufa.R;
import me.shurufa.fragments.BookListFragment;

/**
 * 点击更多图书跳转列表
 *
 * @FileName: me.shurufa.activities.BookListActivity.java
 * @author: kHRYSTAL
 * @email: 723526676@qq.com
 * @date: 2016-02-02 14:16
 */
public class BookListActivity extends BaseActivity{

    @Override
    public void onCreate(Bundle savedInstanceState) {
        activity_layout_res = R.layout.activity_book_list;
        super.onCreate(savedInstanceState);
        uiInit();
        initData();
    }

    private void initData() {
        BookListFragment bookListFragment = new BookListFragment();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(R.id.fragment_container,bookListFragment);
        transaction.commit();
    }

    private void uiInit() {
        titleTextView.setText(getString(R.string.more_book_list));
    }
}
